<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":"
      + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="关键词1,关键词2，关键词3,关键词4,……" />
<meta name="Description" content="你网页的简述" />
<meta name="Robots" content="All" />
<meta name="Generator" content="Dreamweaver" />
<title>教材管理系统</title>
<link href="<%=path%>/static/css/css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<h3 id="subTitle">入库管理--入库</h3>

<form action="<%=path%>/receiveServlet?condition=getTextBook" method="post">
<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" class="table">
    <tr>
        <td width="20%" align="right" class="title2">(请输入)ISBN：</td>
        <td class="within2bg">&nbsp;
            <input name="isbn" type="text"  class="input2"/>	    
            <input name="Submit2" type="submit" class="input2" value="查询"/>
            
		</td>
    </tr>   
</table>
</form>
<form action="<%=path%>/receiveServlet?condition=receiveTextBook" method="post">
<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" class="table">
    <tr>
      <td width="20%" align="right" class="title2">(请选择)供应商：</td>
      <td class="within2bg">&nbsp; 
         <select name="supplier">
        	     <c:forEach var="supplier" items="${sessionScope.suppliers }" varStatus="id">
                 <option selected="selected" value="${supplier.getId() }">${supplier.getName() }</option>
                 </c:forEach>
                 <option selected="selected" >请选择</option>
             </select>
      </td>
    </tr>
    
    <tr>
        <td width="20%" align="right" class="title2">(请输入)教材数量：</td>
        <td class="within2bg">&nbsp;     
        <input name="amount" type="text" class="input2" />
		
		</td>
    </tr>
    
    <tr>
      <td width="20%" align="right" class="title2">(请输入)架位：</td>
        <td class="within2bg">&nbsp;     
        <input name="cell" type="text" class="input2" />
		
		</td>
    </tr>
    <tr>
      <td width="20%" align="right" class="title2">备注：</td>
        <td class="within2bg">&nbsp;     
        <textarea name="remark" type="text"  rows=2 cols=17></textarea>
		
		</td>
    </tr>
    <tr>
      <td width="20%" align="right" class="input2" > </td>
      <td class="within2bg">&nbsp;
         <input name="Submit2" type="submit" class="input2" value="入库"                                                                 onclick="javascript:window.alert('请确认已获得教材并填写教材量');"/> 
		<input name="Submit3" type="reset" class="input2" value="重置"/>
      </td>
    </tr>
    
</table>

<HR>

<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" class="table">
    <tr>
        <th colspan="8" class="p4"><span class="title2">以下为您所得到教材的详细信息</span></th>
    </tr>
    <tr>
        <td width="15%" align="center" class="title2">ISBN</td>
        <td width="15%" align="center" class="title2">教材名</td>
        <td width="15%" align="center" class="title2">作者</td>
        <td width="15%" align="center" class="title2">出版社</td>
        <td width="15%" align="center" class="title2">出版日期</td>
        <td width="15%" align="center" class="title2">版次</td>
        <td width="5%" align="center" class="title2">单价</td>
        <td width="5%" align="center" class="title2">选择</td>
    </tr>
    
    <c:forEach var="textBook" items="${requestScope.textBooks }" varStatus="id">
    <tr>
        <td align="center" class="title2">${textBook.getIsbn() }</td>
        <td class="within2bg" align="center" >&nbsp;${textBook.getName() }</td>
        <td class="within2bg" align="center" >&nbsp;${textBook.getAuthor() }</td>
        <td class="within2bg" align="center" >&nbsp;${textBook.getPublishCompany() }</td>
        <td class="within2bg" align="center" >&nbsp;${textBook.getPunlishTime() }</td>
        <td class="within2bg" align="center" >&nbsp;${textBook.getEdit() }</td>
        <td class="within2bg" align="center" >&nbsp;${textBook.getPrice() }</td>
        <td class="within2bg">&nbsp;
                  <input name="textBook" type="checkbox" value="${textBook.getId() }">
               </td>
    </tr>
    </c:forEach>
    
    <c:if test="${ empty requestScope.textBooks}">
    <tr>
        <th colspan="8" class="p4"><span class="title2">暂无符合条件的记录</span></th>
    </tr>
    </c:if>
    
</table>

</from>

</body>
</html>